<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 敏感词检测系统</title>
    <link th:href="@{/static/css/bootstrap.min.css}" rel="stylesheet">
    <style>
        body {
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
        }
        .login-container {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
        }
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .login-header h1 {
            font-size: 24px;
            color: #333;
            margin-bottom: 10px;
        }
        .login-header p {
            color: #666;
            margin: 0;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-control {
            height: 45px;
            border-radius: 4px;
        }
        .btn-login {
            width: 100%;
            height: 45px;
            background-color: #007bff;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 500;
        }
        .btn-login:hover {
            background-color: #0056b3;
        }
        .alert {
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <div class="login-header">
            <h1>敏感词检测系统</h1>
            <p>请登录以继续</p>
        </div>
        
        <div th:if="${param.error}" class="alert alert-danger">
            用户名或密码错误
        </div>
        
        <div th:if="${param.logout}" class="alert alert-success">
            您已成功退出登录
        </div>
        
        <form th:action="@{/detector/login}" method="post">
            <div class="form-group">
                <label for="username" class="form-label">用户名</label>
                <input type="text" class="form-control" id="username" name="username" required autofocus>
            </div>
            
            <div class="form-group">
                <label for="password" class="form-label">密码</label>
                <input type="password" class="form-control" id="password" name="password" required>
            </div>
            
            <button type="submit" class="btn btn-primary btn-login">登录</button>
        </form>
    </div>
    <script th:src="@{/static/js/bootstrap.bundle.min.js}"></script>
</body>
</html> 